{extend name='template/base'}{/extend}
{block name='style'}{/block}
{block name='script'}{/block}
{block name='content'}
<div class="wrapper">
    <div class="row">
        <form class="form-horizontal" id="form" action="{:url('ShopDelivery/verify_confirm')}">
            <div class="box">
                <div class="box-body">
                    <div class="form-group"></div>
                    <div class="form-group"></div>
                    <div class="form-group">
                        <label class="control-label col-sm-3">审核:</label>
                        <div class="col-sm-6" style="padding-top: 7px;">
                            <span class="mr20" style="padding-right: 20px;"><input type="radio" class="minimal" name="flag_status" value="1" {if $data.flag_status  eq 1}checked{/if}> 通过</span>
                            <span class="mr20"><input type="radio" class="minimal" name="flag_status" value="2" {if $data.flag_status  eq 2}checked{/if}> 不通过</span>
                        </div>
                        <input type="hidden" name="store_id" value="{$data.store_id}">
                        <input type="hidden" name="account_id" value="{$data.account_id}">
                        <div class="col-sm-3"></div>
                    </div>
                    <div class="form-group"></div>
                    <div class="form-group">
                        <div class="col-sm-6 col-sm-offset-3">
                            <button type="submit" class="btn btn-success">&nbsp;提交&nbsp;</button>
                            <button type="button" class="btn btn-default radius ml-20" onclick="layer_close();">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
                        </div>
                    </div>
                </div>

            </div>
        </form>
    </div>
</div>
{/block}
{block name="script_extra"}
<script>
    $("#form").Validform({
        tiptype:2,
        showAllError:true,
        ajaxPost: true,
        callback: function (res) {
            if (res.success == true){
                layer.msg(res.message, {time: 1000},function () {
                    layer_close();
                    parent.$('#table').bootstrapTable('refresh');
                });
            }else{
                layer.alert(res.message);
            }
        }
    });
</script>
{/block}